#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "utils.h"

char* safecopy(char* src)
{
	int len = strlen(src);
	char* copy = malloc(sizeof(char) * (len + 1));

	if (copy == NULL)
	{
		return NULL;
	}
	
	strcpy(copy, src);
	return copy;
}
